using System.Windows.Data;

namespace GraphMyCode.Client.Converters
{
	public class BooleanInvertConverter : IValueConverter
	{

		#region IValueConverter Members

		public object Convert(object value, System.Type targetType, object parameter, System.Globalization.CultureInfo culture)
		{
			bool v = System.Convert.ToBoolean(value);
			return !v;
		}

		public object ConvertBack(object value, System.Type targetType, object parameter, System.Globalization.CultureInfo culture)
		{
			bool v = System.Convert.ToBoolean(value);
			return !v;
		}

		#endregion
	}
}